home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-27 | 9.6 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 42 9a 01 2f 2f 3d 3d 3d |........|B..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 57 |========|==..// W|
|00000060| 69 6e 64 6f 77 43 6f 6e | 73 6f 6c 65 20 2d 20 63 |indowCon|sole - c|
|00000070| 6f 6e 73 6f 6c 65 20 72 | 65 70 6c 61 63 65 72 20 |onsole r|eplacer |
|00000080| 74 6f 20 69 6d 70 6c 65 | 6d 65 6e 74 20 55 57 69 |to imple|ment UWi|
|00000090| 6e 64 6f 77 20 55 49 20 | 53 79 73 74 65 6d 0d 0a |ndow UI |System..|
|000000a0| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0d |========|=======.|
|000000f0| 0a 63 6c 61 73 73 20 57 | 69 6e 64 6f 77 43 6f 6e |.class W|indowCon|
|00000100| 73 6f 6c 65 20 65 78 74 | 65 6e 64 73 20 43 6f 6e |sole ext|ends Con|
|00000110| 73 6f 6c 65 3b 0d 0a 0d | 0a 76 61 72 20 55 57 69 |sole;...|.var UWi|
|00000120| 6e 64 6f 77 52 6f 6f 74 | 57 69 6e 64 6f 77 09 52 |ndowRoot|Window.R|
|00000130| 6f 6f 74 3b 0d 0a 76 61 | 72 28 29 20 63 6f 6e 66 |oot;..va|r() conf|
|00000140| 69 67 20 73 74 72 69 6e | 67 09 09 52 6f 6f 74 57 |ig strin|g..RootW|
|00000150| 69 6e 64 6f 77 3b 0d 0a | 0d 0a 76 61 72 20 66 6c |indow;..|..var fl|
|00000160| 6f 61 74 09 09 09 09 4f | 6c 64 43 6c 69 70 58 3b |oat....O|ldClipX;|
|00000170| 0d 0a 76 61 72 20 66 6c | 6f 61 74 09 09 09 09 4f |..var fl|oat....O|
|00000180| 6c 64 43 6c 69 70 59 3b | 0d 0a 76 61 72 20 62 6f |ldClipY;|..var bo|
|00000190| 6f 6c 09 09 09 09 62 43 | 72 65 61 74 65 64 52 6f |ol....bC|reatedRo|
|000001a0| 6f 74 3b 0d 0a 76 61 72 | 20 66 6c 6f 61 74 09 09 |ot;..var| float..|
|000001b0| 09 09 4d 6f 75 73 65 58 | 3b 0d 0a 76 61 72 20 66 |..MouseX|;..var f|
|000001c0| 6c 6f 61 74 09 09 09 09 | 4d 6f 75 73 65 59 3b 0d |loat....|MouseY;.|
|000001d0| 0a 0d 0a 76 61 72 20 63 | 6c 61 73 73 3c 55 57 69 |...var c|lass<UWi|
|000001e0| 6e 64 6f 77 43 6f 6e 73 | 6f 6c 65 57 69 6e 64 6f |ndowCons|oleWindo|
|000001f0| 77 3e 20 43 6f 6e 73 6f | 6c 65 43 6c 61 73 73 3b |w> Conso|leClass;|
|00000200| 0d 0a 76 61 72 20 63 6f | 6e 66 69 67 20 66 6c 6f |..var co|nfig flo|
|00000210| 61 74 09 09 4d 6f 75 73 | 65 53 63 61 6c 65 3b 0d |at..Mous|eScale;.|
|00000220| 0a 76 61 72 20 63 6f 6e | 66 69 67 20 62 6f 6f 6c |.var con|fig bool|
|00000230| 09 09 09 53 68 6f 77 44 | 65 73 6b 74 6f 70 3b 0d |...ShowD|esktop;.|
|00000240| 0a 76 61 72 20 63 6f 6e | 66 69 67 20 62 6f 6f 6c |.var con|fig bool|
|00000250| 09 09 09 62 53 68 6f 77 | 43 6f 6e 73 6f 6c 65 3b |...bShow|Console;|
|00000260| 0d 0a 76 61 72 20 62 6f | 6f 6c 09 09 09 09 62 42 |..var bo|ol....bB|
|00000270| 6c 61 63 6b 6f 75 74 3b | 0d 0a 76 61 72 20 62 6f |lackout;|..var bo|
|00000280| 6f 6c 09 09 09 09 62 55 | 57 69 6e 64 6f 77 54 79 |ol....bU|WindowTy|
|00000290| 70 65 3b 0d 0a 0d 0a 76 | 61 72 20 62 6f 6f 6c 09 |pe;....v|ar bool.|
|000002a0| 09 09 09 62 55 57 69 6e | 64 6f 77 41 63 74 69 76 |...bUWin|dowActiv|
|000002b0| 65 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 09 09 09 09 |e;..var |bool....|
|000002c0| 62 51 75 69 63 6b 4b 65 | 79 45 6e 61 62 6c 65 3b |bQuickKe|yEnable;|
|000002d0| 0d 0a 76 61 72 20 62 6f | 6f 6c 09 09 09 09 62 4c |..var bo|ol....bL|
|000002e0| 6f 63 6b 65 64 3b 0d 0a | 76 61 72 20 62 6f 6f 6c |ocked;..|var bool|
|000002f0| 09 09 09 09 62 4c 65 76 | 65 6c 43 68 61 6e 67 65 |....bLev|elChange|
|00000300| 3b 0d 0a 76 61 72 20 73 | 74 72 69 6e 67 09 09 09 |;..var s|tring...|
|00000310| 09 4f 6c 64 4c 65 76 65 | 6c 3b 0d 0a 76 61 72 20 |.OldLeve|l;..var |
|00000320| 67 6c 6f 62 61 6c 63 6f | 6e 66 69 67 20 62 79 74 |globalco|nfig byt|
|00000330| 65 09 43 6f 6e 73 6f 6c | 65 4b 65 79 3b 0d 0a 0d |e.Consol|eKey;...|
|00000340| 0a 76 61 72 20 63 6f 6e | 66 69 67 20 45 49 6e 70 |.var con|fig EInp|
|00000350| 75 74 4b 65 79 09 55 57 | 69 6e 64 6f 77 4b 65 79 |utKey.UW|indowKey|
|00000360| 3b 0d 0a 0d 0a 76 61 72 | 20 55 57 69 6e 64 6f 77 |;....var| UWindow|
|00000370| 43 6f 6e 73 6f 6c 65 57 | 69 6e 64 6f 77 20 43 6f |ConsoleW|indow Co|
|00000380| 6e 73 6f 6c 65 57 69 6e | 64 6f 77 3b 0d 0a 0d 0a |nsoleWin|dow;....|
|00000390| 66 75 6e 63 74 69 6f 6e | 20 52 65 73 65 74 55 57 |function| ResetUW|
|000003a0| 69 6e 64 6f 77 28 29 0d | 0a 7b 0d 0a 09 69 66 28 |indow().|.{...if(|
|000003b0| 52 6f 6f 74 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |Root != |None)...|
|000003c0| 09 52 6f 6f 74 2e 43 6c | 6f 73 65 28 29 3b 0d 0a |.Root.Cl|ose();..|
|000003d0| 09 52 6f 6f 74 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 09 |.Root = |None;...|
|000003e0| 62 43 72 65 61 74 65 64 | 52 6f 6f 74 20 3d 20 46 |bCreated|Root = F|
|000003f0| 61 6c 73 65 3b 0d 0a 09 | 43 6f 6e 73 6f 6c 65 57 |alse;...|ConsoleW|
|00000400| 69 6e 64 6f 77 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 09 |indow = |None;...|
|00000410| 62 53 68 6f 77 43 6f 6e | 73 6f 6c 65 20 3d 20 46 |bShowCon|sole = F|
|00000420| 61 6c 73 65 3b 0d 0a 09 | 43 6c 6f 73 65 55 57 69 |alse;...|CloseUWi|
|00000430| 6e 64 6f 77 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 65 76 |ndow();.|.}....ev|
|00000440| 65 6e 74 20 62 6f 6f 6c | 20 4b 65 79 45 76 65 6e |ent bool| KeyEven|
|00000450| 74 28 20 45 49 6e 70 75 | 74 4b 65 79 20 4b 65 79 |t( EInpu|tKey Key|
|00000460| 2c 20 45 49 6e 70 75 74 | 41 63 74 69 6f 6e 20 41 |, EInput|Action A|
|00000470| 63 74 69 6f 6e 2c 20 46 | 4c 4f 41 54 20 44 65 6c |ction, F|LOAT Del|
|00000480| 74 61 20 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ta )..{.|..local |
|00000490| 62 79 74 65 20 6b 3b 0d | 0a 09 6b 20 3d 20 4b 65 |byte k;.|..k = Ke|
|000004a0| 79 3b 0d 0a 09 73 77 69 | 74 63 68 28 41 63 74 69 |y;...swi|tch(Acti|
|000004b0| 6f 6e 29 0d 0a 09 7b 0d | 0a 09 63 61 73 65 20 49 |on)...{.|..case I|
|000004c0| 53 54 5f 50 72 65 73 73 | 3a 0d 0a 09 09 73 77 69 |ST_Press|:....swi|
|000004d0| 74 63 68 28 6b 29 0d 0a | 09 09 7b 0d 0a 09 09 63 |tch(k)..|..{....c|
|000004e0| 61 73 65 20 45 49 6e 70 | 75 74 4b 65 79 2e 49 4b |ase EInp|utKey.IK|
|000004f0| 5f 45 73 63 61 70 65 3a | 0d 0a 09 09 09 69 66 20 |_Escape:|.....if |
|00000500| 28 62 4c 6f 63 6b 65 64 | 29 0d 0a 09 09 09 09 72 |(bLocked|)......r|
|00000510| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 0d 0a 09 |eturn tr|ue;.....|
|00000520| 09 09 62 51 75 69 63 6b | 4b 65 79 45 6e 61 62 6c |..bQuick|KeyEnabl|
|00000530| 65 20 3d 20 46 61 6c 73 | 65 3b 0d 0a 09 09 09 4c |e = Fals|e;.....L|
|00000540| 61 75 6e 63 68 55 57 69 | 6e 64 6f 77 28 29 3b 0d |aunchUWi|ndow();.|
|00000550| 0a 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00000560| 0d 0a 09 09 63 61 73 65 | 20 43 6f 6e 73 6f 6c 65 |....case| Console|
|00000570| 4b 65 79 3a 0d 0a 09 09 | 09 69 66 20 28 62 4c 6f |Key:....|.if (bLo|
|00000580| 63 6b 65 64 29 0d 0a 09 | 09 09 09 72 65 74 75 72 |cked)...|...retur|
|00000590| 6e 20 74 72 75 65 3b 0d | 0a 0d 0a 09 09 09 62 51 |n true;.|......bQ|
|000005a0| 75 69 63 6b 4b 65 79 45 | 6e 61 62 6c 65 20 3d 20 |uickKeyE|nable = |
|000005b0| 54 72 75 65 3b 0d 0a 09 | 09 09 4c 61 75 6e 63 68 |True;...|..Launch|
|000005c0| 55 57 69 6e 64 6f 77 28 | 29 3b 0d 0a 09 09 09 69 |UWindow(|);.....i|
|000005d0| 66 28 21 62 53 68 6f 77 | 43 6f 6e 73 6f 6c 65 29 |f(!bShow|Console)|
|000005e0| 0d 0a 09 09 09 09 53 68 | 6f 77 43 6f 6e 73 6f 6c |......Sh|owConsol|
|000005f0| 65 28 29 3b 0d 0a 09 09 | 09 72 65 74 75 72 6e 20 |e();....|.return |
|00000600| 74 72 75 65 3b 0d 0a 09 | 09 7d 0d 0a 09 09 62 72 |true;...|.}....br|
|00000610| 65 61 6b 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 72 65 74 |eak;...}|.....ret|
|00000620| 75 72 6e 20 46 61 6c 73 | 65 3b 20 0d 0a 09 2f 2f |urn Fals|e; ...//|
|00000630| 21 21 20 62 65 63 61 75 | 73 65 20 6f 66 20 43 6f |!! becau|se of Co|
|00000640| 6e 73 6f 6c 65 4b 65 79 | 0d 0a 09 2f 2f 21 21 20 |nsoleKey|...//!! |
|00000650| 72 65 74 75 72 6e 20 53 | 75 70 65 72 2e 4b 65 79 |return S|uper.Key|
|00000660| 45 76 65 6e 74 28 4b 65 | 79 2c 20 41 63 74 69 6f |Event(Ke|y, Actio|
|00000670| 6e 2c 20 44 65 6c 74 61 | 29 3b 0d 0a 7d 0d 0a 0d |n, Delta|);..}...|
|00000680| 0a 66 75 6e 63 74 69 6f | 6e 20 53 68 6f 77 43 6f |.functio|n ShowCo|
|00000690| 6e 73 6f 6c 65 28 29 0d | 0a 7b 0d 0a 09 62 53 68 |nsole().|.{...bSh|
|000006a0| 6f 77 43 6f 6e 73 6f 6c | 65 20 3d 20 74 72 75 65 |owConsol|e = true|
|000006b0| 3b 0d 0a 09 69 66 28 62 | 43 72 65 61 74 65 64 52 |;...if(b|CreatedR|
|000006c0| 6f 6f 74 29 0d 0a 09 09 | 43 6f 6e 73 6f 6c 65 57 |oot)....|ConsoleW|
|000006d0| 69 6e 64 6f 77 2e 53 68 | 6f 77 57 69 6e 64 6f 77 |indow.Sh|owWindow|
|000006e0| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |();..}..|..functi|
|000006f0| 6f 6e 20 48 69 64 65 43 | 6f 6e 73 6f 6c 65 28 29 |on HideC|onsole()|
|00000700| 0d 0a 7b 0d 0a 09 43 6f | 6e 73 6f 6c 65 4c 69 6e |..{...Co|nsoleLin|
|00000710| 65 73 20 3d 20 30 3b 0d | 0a 09 62 53 68 6f 77 43 |es = 0;.|..bShowC|
|00000720| 6f 6e 73 6f 6c 65 20 3d | 20 66 61 6c 73 65 3b 0d |onsole =| false;.|
|00000730| 0a 09 69 66 20 28 43 6f | 6e 73 6f 6c 65 57 69 6e |..if (Co|nsoleWin|
|00000740| 64 6f 77 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |dow != N|one)....|
|00000750| 43 6f 6e 73 6f 6c 65 57 | 69 6e 64 6f 77 2e 48 69 |ConsoleW|indow.Hi|
|00000760| 64 65 57 69 6e 64 6f 77 | 28 29 3b 0d 0a 7d 0d 0a |deWindow|();..}..|
|00000770| 0d 0a 65 76 65 6e 74 20 | 54 69 63 6b 28 20 66 6c |..event |Tick( fl|
|00000780| 6f 61 74 20 44 65 6c 74 | 61 20 29 0d 0a 7b 0d 0a |oat Delt|a )..{..|
|00000790| 09 53 75 70 65 72 2e 54 | 69 63 6b 28 44 65 6c 74 |.Super.T|ick(Delt|
|000007a0| 61 29 3b 0d 0a 0d 0a 09 | 69 66 28 62 4c 65 76 65 |a);.....|if(bLeve|
|000007b0| 6c 43 68 61 6e 67 65 20 | 26 26 20 52 6f 6f 74 20 |lChange |&& Root |
|000007c0| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 73 74 72 69 6e |!= None |&& strin|
|000007d0| 67 28 56 69 65 77 70 6f | 72 74 2e 41 63 74 6f 72 |g(Viewpo|rt.Actor|
|000007e0| 2e 4c 65 76 65 6c 29 20 | 21 3d 20 4f 6c 64 4c 65 |.Level) |!= OldLe|
|000007f0| 76 65 6c 29 0d 0a 09 7b | 0d 0a 09 09 4f 6c 64 4c |vel)...{|....OldL|
|00000800| 65 76 65 6c 20 3d 20 73 | 74 72 69 6e 67 28 56 69 |evel = s|tring(Vi|
|00000810| 65 77 70 6f 72 74 2e 41 | 63 74 6f 72 2e 4c 65 76 |ewport.A|ctor.Lev|
|00000820| 65 6c 29 3b 0d 0a 09 09 | 2f 2f 20 69 66 20 74 68 |el);....|// if th|
|00000830| 69 73 20 69 73 20 45 6e | 74 72 79 2c 20 77 65 20 |is is En|try, we |
|00000840| 63 6f 75 6c 64 20 62 65 | 20 66 61 6c 6c 69 6e 67 |could be| falling|
|00000850| 20 74 68 72 6f 75 67 68 | 20 74 6f 20 61 6e 6f 74 | through| to anot|
|00000860| 68 65 72 20 6c 65 76 65 | 6c 2e 2e 2e 0d 0a 09 09 |her leve|l.......|
|00000870| 69 66 28 56 69 65 77 70 | 6f 72 74 2e 41 63 74 6f |if(Viewp|ort.Acto|
|00000880| 72 2e 4c 65 76 65 6c 20 | 21 3d 20 56 69 65 77 70 |r.Level |!= Viewp|
|00000890| 6f 72 74 2e 41 63 74 6f | 72 2e 47 65 74 45 6e 74 |ort.Acto|r.GetEnt|
|000008a0| 72 79 4c 65 76 65 6c 28 | 29 29 0d 0a 09 09 09 62 |ryLevel(|)).....b|
|000008b0| 4c 65 76 65 6c 43 68 61 | 6e 67 65 20 3d 20 46 61 |LevelCha|nge = Fa|
|000008c0| 6c 73 65 3b 0d 0a 09 09 | 52 6f 6f 74 2e 4e 6f 74 |lse;....|Root.Not|
|000008d0| 69 66 79 41 66 74 65 72 | 4c 65 76 65 6c 43 68 61 |ifyAfter|LevelCha|
|000008e0| 6e 67 65 28 29 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |nge();..|.}..}...|
|000008f0| 0a 73 74 61 74 65 20 55 | 57 69 6e 64 6f 77 0d 0a |.state U|Window..|
|00000900| 7b 0d 0a 09 65 76 65 6e | 74 20 54 69 63 6b 28 20 |{...even|t Tick( |
|00000910| 66 6c 6f 61 74 20 44 65 | 6c 74 61 20 29 0d 0a 09 |float De|lta )...|
|00000920| 7b 0d 0a 09 09 47 6c 6f | 62 61 6c 2e 54 69 63 6b |{....Glo|bal.Tick|
|00000930| 28 44 65 6c 74 61 29 3b | 0d 0a 09 09 69 66 28 52 |(Delta);|....if(R|
|00000940| 6f 6f 74 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |oot != N|one)....|
|00000950| 09 52 6f 6f 74 2e 44 6f | 54 69 63 6b 28 44 65 6c |.Root.Do|Tick(Del|
|00000960| 74 61 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 65 76 65 |ta);...}|.....eve|
|00000970| 6e 74 20 50 6f 73 74 52 | 65 6e 64 65 72 28 20 63 |nt PostR|ender( c|
|00000980| 61 6e 76 61 73 20 43 61 | 6e 76 61 73 20 29 0d 0a |anvas Ca|nvas )..|
|00000990| 09 7b 0d 0a 09 09 69 66 | 20 28 43 6f 6e 73 6f 6c |.{....if| (Consol|
|000009a0| 65 57 69 6e 64 6f 77 20 | 21 3d 20 4e 6f 6e 65 29 |eWindow |!= None)|
|000009b0| 0d 0a 09 09 09 55 57 69 | 6e 64 6f 77 43 6f 6e 73 |.....UWi|ndowCons|
|000009c0| 6f 6c 65 43 6c 69 65 6e | 74 57 69 6e 64 6f 77 28 |oleClien|tWindow(|
|000009d0| 43 6f 6e 73 6f 6c 65 57 | 69 6e 64 6f 77 2e 43 6c |ConsoleW|indow.Cl|
|000009e0| 69 65 6e 74 41 72 65 61 | 29 2e 54 65 78 74 41 72 |ientArea|).TextAr|
|000009f0| 65 61 2e 53 65 74 50 72 | 6f 6d 70 74 28 22 28 3e |ea.SetPr|ompt("(>|
|00000a00| 20 22 24 54 79 70 65 64 | 53 74 72 29 3b 0d 0a 0d | "$Typed|Str);...|
|00000a10| 0a 09 09 69 66 28 52 6f | 6f 74 20 21 3d 20 4e 6f |...if(Ro|ot != No|
|00000a20| 6e 65 29 0d 0a 09 09 7b | 0d 0a 09 09 09 52 6f 6f |ne)....{|.....Roo|
|00000a30| 74 2e 62 55 57 69 6e 64 | 6f 77 41 63 74 69 76 65 |t.bUWind|owActive|
|00000a40| 20 3d 20 54 72 75 65 3b | 0d 0a 09 09 7d 0d 0a 09 | = True;|....}...|
|00000a50| 09 52 65 6e 64 65 72 55 | 57 69 6e 64 6f 77 28 20 |.RenderU|Window( |
|00000a60| 43 61 6e 76 61 73 20 29 | 3b 0d 0a 09 7d 0d 0a 0d |Canvas )|;...}...|
|00000a70| 0a 09 65 76 65 6e 74 20 | 62 6f 6f 6c 20 4b 65 79 |..event |bool Key|
|00000a80| 54 79 70 65 28 20 45 49 | 6e 70 75 74 4b 65 79 20 |Type( EI|nputKey |
|00000a90| 4b 65 79 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |Key )...|{....if |
|00000aa0| 28 52 6f 6f 74 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |(Root !=| None)..|
|00000ab0| 09 09 7b 0d 0a 09 09 09 | 52 6f 6f 74 2e 57 69 6e |..{.....|Root.Win|
|00000ac0| 64 6f 77 45 76 65 6e 74 | 28 57 4d 5f 4b 65 79 54 |dowEvent|(WM_KeyT|
|00000ad0| 79 70 65 2c 20 4e 6f 6e | 65 2c 20 4d 6f 75 73 65 |ype, Non|e, Mouse|
|00000ae0| 58 2c 20 4d 6f 75 73 65 | 59 2c 20 4b 65 79 29 3b |X, Mouse|Y, Key);|
|00000af0| 0d 0a 09 09 7d 0d 0a 09 | 09 72 65 74 75 72 6e 20 |....}...|.return |
|00000b00| 54 72 75 65 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 65 76 |True;...|}.....ev|
|00000b10| 65 6e 74 20 62 6f 6f 6c | 20 4b 65 79 45 76 65 6e |ent bool| KeyEven|
|00000b20| 74 28 20 45 49 6e 70 75 | 74 4b 65 79 20 4b 65 79 |t( EInpu|tKey Key|
|00000b30| 2c 20 45 49 6e 70 75 74 | 41 63 74 69 6f 6e 20 41 |, EInput|Action A|
|00000b40| 63 74 69 6f 6e 2c 20 46 | 4c 4f 41 54 20 44 65 6c |ction, F|LOAT Del|
|00000b50| 74 61 20 29 0d 0a 09 7b | 0d 0a 09 09 6c 6f 63 61 |ta )...{|....loca|
|00000b60| 6c 20 62 79 74 65 20 6b | 3b 0d 0a 09 09 6b 20 3d |l byte k|;....k =|
|00000b70| 20 4b 65 79 3b 0d 0a 0d | 0a 09 09 73 77 69 74 63 | Key;...|...switc|
|00000b80| 68 20 28 41 63 74 69 6f | 6e 29 20 7b 0d 0a 09 09 |h (Actio|n) {....|
|00000b90| 63 61 73 65 20 49 53 54 | 5f 52 65 6c 65 61 73 65 |case IST|_Release|
|00000ba0| 3a 0d 0a 09 09 09 73 77 | 69 74 63 68 20 28 6b 29 |:.....sw|itch (k)|
|00000bb0| 20 7b 0d 0a 09 09 09 63 | 61 73 65 20 45 49 6e 70 | {.....c|ase EInp|
|00000bc0| 75 74 4b 65 79 2e 49 4b | 5f 4c 65 66 74 4d 6f 75 |utKey.IK|_LeftMou|
|00000bd0| 73 65 3a 0d 0a 09 09 09 | 09 69 66 28 52 6f 6f 74 |se:.....|.if(Root|
|00000be0| 20 21 3d 20 4e 6f 6e 65 | 29 20 7b 0d 0a 09 09 09 | != None|) {.....|
|00000bf0| 09 09 52 6f 6f 74 2e 57 | 69 6e 64 6f 77 45 76 65 |..Root.W|indowEve|
|00000c00| 6e 74 28 57 4d 5f 4c 4d | 6f 75 73 65 55 70 2c 20 |nt(WM_LM|ouseUp, |
|00000c10| 4e 6f 6e 65 2c 20 4d 6f | 75 73 65 58 2c 20 4d 6f |None, Mo|useX, Mo|
|00000c20| 75 73 65 59 2c 20 6b 29 | 3b 0d 0a 09 09 09 09 7d |useY, k)|;......}|
|00000c30| 0d 0a 09 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |......br|eak;....|
|00000c40| 09 63 61 73 65 20 45 49 | 6e 70 75 74 4b 65 79 2e |.case EI|nputKey.|
|00000c50| 49 4b 5f 52 69 67 68 74 | 4d 6f 75 73 65 3a 0d 0a |IK_Right|Mouse:..|
|00000c60| 09 09 09 09 69 66 28 52 | 6f 6f 74 20 21 3d 20 4e |....if(R|oot != N|
|00000c70| 6f 6e 65 29 20 7b 0d 0a | 09 09 09 09 09 52 6f 6f |one) {..|.....Roo|
|00000c80| 74 2e 57 69 6e 64 6f 77 | 45 76 65 6e 74 28 57 4d |t.Window|Event(WM|
|00000c90| 5f 52 4d 6f 75 73 65 55 | 70 2c 20 4e 6f 6e 65 2c |_RMouseU|p, None,|
|00000ca0| 20 4d 6f 75 73 65 58 2c | 20 4d 6f 75 73 65 59 2c | MouseX,| MouseY,|
|00000cb0| 20 6b 29 3b 0d 0a 09 09 | 09 09 7d 0d 0a 09 09 09 | k);....|..}.....|
|00000cc0| 09 62 72 65 61 6b 3b 0d | 0a 09 09 09 63 61 73 65 |.break;.|....case|
|00000cd0| 20 45 49 6e 70 75 74 4b | 65 79 2e 49 4b 5f 4d 69 | EInputK|ey.IK_Mi|
|00000ce0| 64 64 6c 65 4d 6f 75 73 | 65 3a 0d 0a 09 09 09 09 |ddleMous|e:......|
|00000cf0| 69 66 28 52 6f 6f 74 20 | 21 3d 20 4e 6f 6e 65 29 |if(Root |!= None)|
|00000d00| 20 7b 0d 0a 09 09 09 09 | 09 52 6f 6f 74 2e 57 69 | {......|.Root.Wi|
|00000d10| 6e 64 6f 77 45 76 65 6e | 74 28 57 4d 5f 4d 4d 6f |ndowEven|t(WM_MMo|
|00000d20| 75 73 65 55 70 2c 20 4e | 6f 6e 65 2c 20 4d 6f 75 |useUp, N|one, Mou|
|00000d30| 73 65 58 2c 20 4d 6f 75 | 73 65 59 2c 20 6b 29 3b |seX, Mou|seY, k);|
|00000d40| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 09 62 72 65 |......}.|.....bre|
|00000d50| 61 6b 3b 0d 0a 09 09 09 | 64 65 66 61 75 6c 74 3a |ak;.....|default:|
|00000d60| 0d 0a 09 09 09 09 69 66 | 28 52 6f 6f 74 20 21 3d |......if|(Root !=|
|00000d70| 20 4e 6f 6e 65 29 20 7b | 0d 0a 09 09 09 09 09 52 | None) {|.......R|
|00000d80| 6f 6f 74 2e 57 69 6e 64 | 6f 77 45 76 65 6e 74 28 |oot.Wind|owEvent(|
|00000d90| 57 4d 5f 4b 65 79 55 70 | 2c 20 4e 6f 6e 65 2c 20 |WM_KeyUp|, None, |
|00000da0| 4d 6f 75 73 65 58 2c 20 | 4d 6f 75 73 65 59 2c 20 |MouseX, |MouseY, |
|00000db0| 6b 29 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 09 |k);.....|.}......|
|00000dc0| 62 72 65 61 6b 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |break;..|...}....|
|00000dd0| 09 62 72 65 61 6b 3b 0d | 0a 0d 0a 09 09 63 61 73 |.break;.|.....cas|
|00000de0| 65 20 49 53 54 5f 50 72 | 65 73 73 3a 0d 0a 09 09 |e IST_Pr|ess:....|
|00000df0| 09 73 77 69 74 63 68 20 | 28 6b 29 20 7b 0d 0a 09 |.switch |(k) {...|
|00000e00| 09 09 63 61 73 65 20 45 | 49 6e 70 75 74 4b 65 79 |..case E|InputKey|
|00000e10| 2e 49 4b 5f 46 39 3a 09 | 2f 2f 20 53 63 72 65 65 |.IK_F9:.|// Scree|
|00000e20| 6e 73 68 6f 74 0d 0a 09 | 09 09 09 72 65 74 75 72 |nshot...|...retur|
|00000e30| 6e 20 47 6c 6f 62 61 6c | 2e 4b 65 79 45 76 65 6e |n Global|.KeyEven|
|00000e40| 74 28 4b 65 79 2c 20 41 | 63 74 69 6f 6e 2c 20 44 |t(Key, A|ction, D|
|00000e50| 65 6c 74 61 29 3b 0d 0a | 09 09 09 09 62 72 65 61 |elta);..|....brea|
|00000e60| 6b 3b 0d 0a 09 09 09 63 | 61 73 65 20 43 6f 6e 73 |k;.....c|ase Cons|
|00000e70| 6f 6c 65 4b 65 79 3a 0d | 0a 09 09 09 09 69 66 20 |oleKey:.|.....if |
|00000e80| 28 62 53 68 6f 77 43 6f | 6e 73 6f 6c 65 29 0d 0a |(bShowCo|nsole)..|
|00000e90| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 48 69 64 65 |....{...|....Hide|
|00000ea0| 43 6f 6e 73 6f 6c 65 28 | 29 3b 0d 0a 09 09 09 09 |Console(|);......|
|00000eb0| 09 69 66 28 62 51 75 69 | 63 6b 4b 65 79 45 6e 61 |.if(bQui|ckKeyEna|
|00000ec0| 62 6c 65 29 0d 0a 09 09 | 09 09 09 09 43 6c 6f 73 |ble)....|....Clos|
|00000ed0| 65 55 57 69 6e 64 6f 77 | 28 29 3b 0d 0a 09 09 09 |eUWindow|();.....|
|00000ee0| 09 7d 0d 0a 09 09 09 09 | 65 6c 73 65 0d 0a 09 09 |.}......|else....|
|00000ef0| 09 09 7b 0d 0a 09 09 09 | 09 09 69 66 28 52 6f 6f |..{.....|..if(Roo|
|00000f00| 74 2e 62 41 6c 6c 6f 77 | 43 6f 6e 73 6f 6c 65 29 |t.bAllow|Console)|
|00000f10| 0d 0a 09 09 09 09 09 09 | 53 68 6f 77 43 6f 6e 73 |........|ShowCons|
|00000f20| 6f 6c 65 28 29 3b 0d 0a | 09 09 09 09 09 65 6c 73 |ole();..|.....els|
|00000f30| 65 0d 0a 09 09 09 09 09 | 09 52 6f 6f 74 2e 57 69 |e.......|.Root.Wi|
|00000f40| 6e 64 6f 77 45 76 65 6e | 74 28 57 4d 5f 4b 65 79 |ndowEven|t(WM_Key|
|00000f50| 44 6f 77 6e 2c 20 4e 6f | 6e 65 2c 20 4d 6f 75 73 |Down, No|ne, Mous|
|00000f60| 65 58 2c 20 4d 6f 75 73 | 65 59 2c 20 6b 29 3b 0d |eX, Mous|eY, k);.|
|00000f70| 0a 09 09 09 09 7d 0d 0a | 09 09 09 09 62 72 65 61 |.....}..|....brea|
|00000f80| 6b 3b 0d 0a 09 09 09 63 | 61 73 65 20 45 49 6e 70 |k;.....c|ase EInp|
|00000f90| 75 74 4b 65 79 2e 49 4b | 5f 45 73 63 61 70 65 3a |utKey.IK|_Escape:|
|00000fa0| 0d 0a 09 09 09 09 69 66 | 28 52 6f 6f 74 20 21 3d |......if|(Root !=|
|00000fb0| 20 4e 6f 6e 65 29 0d 0a | 09 09 09 09 09 52 6f 6f | None)..|.....Roo|
|00000fc0| 74 2e 43 6c 6f 73 65 41 | 63 74 69 76 65 57 69 6e |t.CloseA|ctiveWin|
|00000fd0| 64 6f 77 28 29 3b 0d 0a | 09 09 09 09 62 72 65 61 |dow();..|....brea|
|00000fe0| 6b 3b 0d 0a 09 09 09 63 | 61 73 65 20 45 49 6e 70 |k;.....c|ase EInp|
|00000ff0| 75 74 4b 65 79 2e 49 4b | 5f 4c 65 66 74 4d 6f 75 |utKey.IK|_LeftMou|
|00001000| 73 65 3a 0d 0a 09 09 09 | 09 69 66 28 52 6f 6f 74 |se:.....|.if(Root|
|00001010| 20 21 3d 20 4e 6f 6e 65 | 29 20 7b 0d 0a 09 09 09 | != None|) {.....|
|00001020| 09 09 52 6f 6f 74 2e 57 | 69 6e 64 6f 77 45 76 65 |..Root.W|indowEve|
|00001030| 6e 74 28 57 4d 5f 4c 4d | 6f 75 73 65 44 6f 77 6e |nt(WM_LM|ouseDown|
|00001040| 2c 20 4e 6f 6e 65 2c 20 | 4d 6f 75 73 65 58 2c 20 |, None, |MouseX, |
|00001050| 4d 6f 75 73 65 59 2c 20 | 6b 29 3b 0d 0a 09 09 09 |MouseY, |k);.....|
|00001060| 09 7d 0d 0a 09 09 09 09 | 62 72 65 61 6b 3b 0d 0a |.}......|break;..|
|00001070| 09 09 09 63 61 73 65 20 | 45 49 6e 70 75 74 4b 65 |...case |EInputKe|
|00001080| 79 2e 49 4b 5f 52 69 67 | 68 74 4d 6f 75 73 65 3a |y.IK_Rig|htMouse:|
|00001090| 0d 0a 09 09 09 09 69 66 | 28 52 6f 6f 74 20 21 3d |......if|(Root !=|
|000010a0| 20 4e 6f 6e 65 29 20 7b | 0d 0a 09 09 09 09 09 52 | None) {|.......R|
|000010b0| 6f 6f 74 2e 57 69 6e 64 | 6f 77 45 76 65 6e 74 28 |oot.Wind|owEvent(|
|000010c0| 57 4d 5f 52 4d 6f 75 73 | 65 44 6f 77 6e 2c 20 4e |WM_RMous|eDown, N|
|000010d0| 6f 6e 65 2c 20 4d 6f 75 | 73 65 58 2c 20 4d 6f 75 |one, Mou|seX, Mou|
|000010e0| 73 65 59 2c 20 6b 29 3b | 0d 0a 09 09 09 09 7d 0d |seY, k);|......}.|
|000010f0| 0a 09 09 09 09 62 72 65 | 61 6b 3b 0d 0a 09 09 09 |.....bre|ak;.....|
|00001100| 63 61 73 65 20 45 49 6e | 70 75 74 4b 65 79 2e 49 |case EIn|putKey.I|
|00001110| 4b 5f 4d 69 64 64 6c 65 | 4d 6f 75 73 65 3a 0d 0a |K_Middle|Mouse:..|
|00001120| 09 09 09 09 69 66 28 52 | 6f 6f 74 20 21 3d 20 4e |....if(R|oot != N|
|00001130| 6f 6e 65 29 20 7b 0d 0a | 09 09 09 09 09 52 6f 6f |one) {..|.....Roo|
|00001140| 74 2e 57 69 6e 64 6f 77 | 45 76 65 6e 74 28 57 4d |t.Window|Event(WM|
|00001150| 5f 4d 4d 6f 75 73 65 44 | 6f 77 6e 2c 20 4e 6f 6e |_MMouseD|own, Non|
|00001160| 65 2c 20 4d 6f 75 73 65 | 58 2c 20 4d 6f 75 73 65 |e, Mouse|X, Mouse|
|00001170| 59 2c 20 6b 29 3b 0d 0a | 09 09 09 09 7d 0d 0a 09 |Y, k);..|....}...|
|00001180| 09 09 09 62 72 65 61 6b | 3b 0d 0a 0d 0a 09 09 09 |...break|;.......|
|00001190| 64 65 66 61 75 6c 74 3a | 0d 0a 09 09 09 09 69 66 |default:|......if|
|000011a0| 28 52 6f 6f 74 20 21 3d | 20 4e 6f 6e 65 29 20 7b |(Root !=| None) {|
|000011b0| 0d 0a 09 09 09 09 09 52 | 6f 6f 74 2e 57 69 6e 64 |.......R|oot.Wind|
|000011c0| 6f 77 45 76 65 6e 74 28 | 57 4d 5f 4b 65 79 44 6f |owEvent(|WM_KeyDo|
|000011d0| 77 6e 2c 20 4e 6f 6e 65 | 2c 20 4d 6f 75 73 65 58 |wn, None|, MouseX|
|000011e0| 2c 20 4d 6f 75 73 65 59 | 2c 20 6b 29 3b 0d 0a 09 |, MouseY|, k);...|
|000011f0| 09 09 09 7d 0d 0a 09 09 | 09 09 62 72 65 61 6b 3b |...}....|..break;|
|00001200| 0d 0a 09 09 09 7d 0d 0a | 09 09 09 62 72 65 61 6b |.....}..|...break|
|00001210| 3b 0d 0a 09 09 63 61 73 | 65 20 49 53 54 5f 41 78 |;....cas|e IST_Ax|
|00001220| 69 73 3a 0d 0a 09 09 09 | 73 77 69 74 63 68 20 28 |is:.....|switch (|
|00001230| 4b 65 79 29 20 7b 0d 0a | 09 09 09 63 61 73 65 20 |Key) {..|...case |
|00001240| 49 4b 5f 4d 6f 75 73 65 | 58 3a 0d 0a 09 09 09 09 |IK_Mouse|X:......|
|00001250| 4d 6f 75 73 65 58 20 3d | 20 4d 6f 75 73 65 58 20 |MouseX =| MouseX |
|00001260| 2b 20 28 4d 6f 75 73 65 | 53 63 61 6c 65 20 2a 20 |+ (Mouse|Scale * |
|00001270| 44 65 6c 74 61 29 3b 0d | 0a 09 09 09 09 62 72 65 |Delta);.|.....bre|
|00001280| 61 6b 3b 0d 0a 09 09 09 | 63 61 73 65 20 49 4b 5f |ak;.....|case IK_|
|00001290| 4d 6f 75 73 65 59 3a 0d | 0a 09 09 09 09 4d 6f 75 |MouseY:.|.....Mou|
|000012a0| 73 65 59 20 3d 20 4d 6f | 75 73 65 59 20 2d 20 28 |seY = Mo|useY - (|
|000012b0| 4d 6f 75 73 65 53 63 61 | 6c 65 20 2a 20 44 65 6c |MouseSca|le * Del|
|000012c0| 74 61 29 3b 0d 0a 09 09 | 09 09 62 72 65 61 6b 3b |ta);....|..break;|
|000012d0| 09 09 09 09 09 0d 0a 09 | 09 09 7d 0d 0a 09 09 64 |........|..}....d|
|000012e0| 65 66 61 75 6c 74 3a 0d | 0a 09 09 09 62 72 65 61 |efault:.|....brea|
|000012f0| 6b 3b 0d 0a 09 09 7d 0d | 0a 0d 0a 09 09 72 65 74 |k;....}.|.....ret|
|00001300| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 0d |urn true|;...}...|
|00001310| 0a 42 65 67 69 6e 3a 0d | 0a 7d 0d 0a 0d 0a 66 75 |.Begin:.|.}....fu|
|00001320| 6e 63 74 69 6f 6e 20 54 | 6f 67 67 6c 65 55 57 69 |nction T|oggleUWi|
|00001330| 6e 64 6f 77 28 29 0d 0a | 7b 0d 0a 7d 0d 0a 0d 0a |ndow()..|{..}....|
|00001340| 66 75 6e 63 74 69 6f 6e | 20 4c 61 75 6e 63 68 55 |function| LaunchU|
|00001350| 57 69 6e 64 6f 77 28 29 | 0d 0a 7b 0d 0a 09 56 69 |Window()|..{...Vi|
|00001360| 65 77 70 6f 72 74 2e 62 | 53 75 73 70 65 6e 64 50 |ewport.b|SuspendP|
|00001370| 72 65 63 61 63 68 69 6e | 67 20 3d 20 54 72 75 65 |recachin|g = True|
|00001380| 3b 0d 0a 09 62 55 57 69 | 6e 64 6f 77 41 63 74 69 |;...bUWi|ndowActi|
|00001390| 76 65 20 3d 20 21 62 51 | 75 69 63 6b 4b 65 79 45 |ve = !bQ|uickKeyE|
|000013a0| 6e 61 62 6c 65 3b 0d 0a | 09 56 69 65 77 70 6f 72 |nable;..|.Viewpor|
|000013b0| 74 2e 62 53 68 6f 77 57 | 69 6e 64 6f 77 73 4d 6f |t.bShowW|indowsMo|
|000013c0| 75 73 65 20 3d 20 54 72 | 75 65 3b 0d 0a 0d 0a 09 |use = Tr|ue;.....|
|000013d0| 69 66 28 62 51 75 69 63 | 6b 4b 65 79 45 6e 61 62 |if(bQuic|kKeyEnab|
|000013e0| 6c 65 29 0d 0a 09 09 62 | 4e 6f 44 72 61 77 57 6f |le)....b|NoDrawWo|
|000013f0| 72 6c 64 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 09 65 |rld = Fa|lse;...e|
|00001400| 6c 73 65 0d 0a 09 7b 0d | 0a 09 09 69 66 28 56 69 |lse...{.|...if(Vi|
|00001410| 65 77 70 6f 72 74 2e 41 | 63 74 6f 72 2e 4c 65 76 |ewport.A|ctor.Lev|
|00001420| 65 6c 2e 4e 65 74 4d 6f | 64 65 20 3d 3d 20 4e 4d |el.NetMo|de == NM|
|00001430| 5f 53 74 61 6e 64 61 6c | 6f 6e 65 29 0d 0a 09 09 |_Standal|one)....|
|00001440| 09 56 69 65 77 70 6f 72 | 74 2e 41 63 74 6f 72 2e |.Viewpor|t.Actor.|
|00001450| 53 65 74 50 61 75 73 65 | 28 20 54 72 75 65 20 29 |SetPause|( True )|
|00001460| 3b 0d 0a 09 09 62 4e 6f | 44 72 61 77 57 6f 72 6c |;....bNo|DrawWorl|
|00001470| 64 20 3d 20 53 68 6f 77 | 44 65 73 6b 74 6f 70 3b |d = Show|Desktop;|
|00001480| 0d 0a 09 7d 0d 0a 09 69 | 66 28 52 6f 6f 74 20 21 |...}...i|f(Root !|
|00001490| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 52 6f 6f 74 2e |= None).|...Root.|
|000014a0| 62 57 69 6e 64 6f 77 56 | 69 73 69 62 6c 65 20 3d |bWindowV|isible =|
|000014b0| 20 54 72 75 65 3b 0d 0a | 09 47 6f 74 6f 53 74 61 | True;..|.GotoSta|
|000014c0| 74 65 28 27 55 57 69 6e | 64 6f 77 27 29 3b 0d 0a |te('UWin|dow');..|
|000014d0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 43 6c |}....fun|ction Cl|
|000014e0| 6f 73 65 55 57 69 6e 64 | 6f 77 28 29 0d 0a 7b 0d |oseUWind|ow()..{.|
|000014f0| 0a 09 69 66 28 21 62 51 | 75 69 63 6b 4b 65 79 45 |..if(!bQ|uickKeyE|
|00001500| 6e 61 62 6c 65 29 0d 0a | 09 09 56 69 65 77 70 6f |nable)..|..Viewpo|
|00001510| 72 74 2e 41 63 74 6f 72 | 2e 53 65 74 50 61 75 73 |rt.Actor|.SetPaus|
|00001520| 65 28 20 46 61 6c 73 65 | 20 29 3b 0d 0a 0d 0a 09 |e( False| );.....|
|00001530| 62 4e 6f 44 72 61 77 57 | 6f 72 6c 64 20 3d 20 46 |bNoDrawW|orld = F|
|00001540| 61 6c 73 65 3b 0d 0a 09 | 62 51 75 69 63 6b 4b 65 |alse;...|bQuickKe|
|00001550| 79 45 6e 61 62 6c 65 20 | 3d 20 46 61 6c 73 65 3b |yEnable |= False;|
|00001560| 0d 0a 09 62 55 57 69 6e | 64 6f 77 41 63 74 69 76 |...bUWin|dowActiv|
|00001570| 65 20 3d 20 46 61 6c 73 | 65 3b 0d 0a 09 56 69 65 |e = Fals|e;...Vie|
|00001580| 77 70 6f 72 74 2e 62 53 | 68 6f 77 57 69 6e 64 6f |wport.bS|howWindo|
|00001590| 77 73 4d 6f 75 73 65 20 | 3d 20 46 61 6c 73 65 3b |wsMouse |= False;|
|000015a0| 0d 0a 0d 0a 09 69 66 28 | 52 6f 6f 74 20 21 3d 20 |.....if(|Root != |
|000015b0| 4e 6f 6e 65 29 0d 0a 09 | 09 52 6f 6f 74 2e 62 57 |None)...|.Root.bW|
|000015c0| 69 6e 64 6f 77 56 69 73 | 69 62 6c 65 20 3d 20 46 |indowVis|ible = F|
|000015d0| 61 6c 73 65 3b 0d 0a 09 | 47 6f 74 6f 53 74 61 74 |alse;...|GotoStat|
|000015e0| 65 28 27 27 29 3b 0d 0a | 09 56 69 65 77 70 6f 72 |e('');..|.Viewpor|
|000015f0| 74 2e 62 53 75 73 70 65 | 6e 64 50 72 65 63 61 63 |t.bSuspe|ndPrecac|
|00001600| 68 69 6e 67 20 3d 20 46 | 61 6c 73 65 3b 0d 0a 7d |hing = F|alse;..}|
|00001610| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 43 72 65 |....func|tion Cre|
|00001620| 61 74 65 52 6f 6f 74 57 | 69 6e 64 6f 77 28 43 61 |ateRootW|indow(Ca|
|00001630| 6e 76 61 73 20 43 61 6e | 76 61 73 29 0d 0a 7b 0d |nvas Can|vas)..{.|
|00001640| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 69 3b 0d 0a |..local |int i;..|
|00001650| 0d 0a 09 4f 6c 64 43 6c | 69 70 58 20 3d 20 43 61 |...OldCl|ipX = Ca|
|00001660| 6e 76 61 73 2e 43 6c 69 | 70 58 3b 0d 0a 09 4f 6c |nvas.Cli|pX;...Ol|
|00001670| 64 43 6c 69 70 59 20 3d | 20 43 61 6e 76 61 73 2e |dClipY =| Canvas.|
|00001680| 43 6c 69 70 59 3b 09 0d | 0a 09 0d 0a 09 4c 6f 67 |ClipY;..|.....Log|
|00001690| 28 22 43 72 65 61 74 69 | 6e 67 20 72 6f 6f 74 20 |("Creati|ng root |
|000016a0| 77 69 6e 64 6f 77 3a 20 | 22 24 52 6f 6f 74 57 69 |window: |"$RootWi|
|000016b0| 6e 64 6f 77 29 3b 0d 0a | 09 0d 0a 09 52 6f 6f 74 |ndow);..|....Root|
|000016c0| 20 3d 20 4e 65 77 28 4e | 6f 6e 65 29 20 63 6c 61 | = New(N|one) cla|
|000016d0| 73 73 3c 55 57 69 6e 64 | 6f 77 52 6f 6f 74 57 69 |ss<UWind|owRootWi|
|000016e0| 6e 64 6f 77 3e 28 44 79 | 6e 61 6d 69 63 4c 6f 61 |ndow>(Dy|namicLoa|
|000016f0| 64 4f 62 6a 65 63 74 28 | 52 6f 6f 74 57 69 6e 64 |dObject(|RootWind|
|00001700| 6f 77 2c 20 63 6c 61 73 | 73 27 43 6c 61 73 73 27 |ow, clas|s'Class'|
|00001710| 29 29 3b 0d 0a 0d 0a 09 | 52 6f 6f 74 2e 42 65 67 |));.....|Root.Beg|
|00001720| 69 6e 50 6c 61 79 28 29 | 3b 0d 0a 09 52 6f 6f 74 |inPlay()|;...Root|
|00001730| 2e 57 69 6e 54 6f 70 20 | 3d 20 30 3b 0d 0a 09 52 |.WinTop |= 0;...R|
|00001740| 6f 6f 74 2e 57 69 6e 4c | 65 66 74 20 3d 20 30 3b |oot.WinL|eft = 0;|
|00001750| 0d 0a 09 52 6f 6f 74 2e | 57 69 6e 57 69 64 74 68 |...Root.|WinWidth|
|00001760| 20 3d 20 43 61 6e 76 61 | 73 2e 43 6c 69 70 58 20 | = Canva|s.ClipX |
|00001770| 2f 20 52 6f 6f 74 2e 47 | 55 49 53 63 61 6c 65 3b |/ Root.G|UIScale;|
|00001780| 0d 0a 09 52 6f 6f 74 2e | 57 69 6e 48 65 69 67 68 |...Root.|WinHeigh|
|00001790| 74 20 3d 20 43 61 6e 76 | 61 73 2e 43 6c 69 70 59 |t = Canv|as.ClipY|
|000017a0| 20 2f 20 52 6f 6f 74 2e | 47 55 49 53 63 61 6c 65 | / Root.|GUIScale|
|000017b0| 3b 0d 0a 0d 0a 09 52 6f | 6f 74 2e 52 65 61 6c 57 |;.....Ro|ot.RealW|
|000017c0| 69 64 74 68 20 3d 20 43 | 61 6e 76 61 73 2e 43 6c |idth = C|anvas.Cl|
|000017d0| 69 70 58 3b 0d 0a 09 52 | 6f 6f 74 2e 52 65 61 6c |ipX;...R|oot.Real|
|000017e0| 48 65 69 67 68 74 20 3d | 20 43 61 6e 76 61 73 2e |Height =| Canvas.|
|000017f0| 43 6c 69 70 59 3b 0d 0a | 0d 0a 09 52 6f 6f 74 2e |ClipY;..|...Root.|
|00001800| 43 6c 69 70 70 69 6e 67 | 52 65 67 69 6f 6e 2e 58 |Clipping|Region.X|
|00001810| 20 3d 20 30 3b 0d 0a 09 | 52 6f 6f 74 2e 43 6c 69 | = 0;...|Root.Cli|
|00001820| 70 70 69 6e 67 52 65 67 | 69 6f 6e 2e 59 20 3d 20 |ppingReg|ion.Y = |
|00001830| 30 3b 0d 0a 09 52 6f 6f | 74 2e 43 6c 69 70 70 69 |0;...Roo|t.Clippi|
|00001840| 6e 67 52 65 67 69 6f 6e | 2e 57 20 3d 20 52 6f 6f |ngRegion|.W = Roo|
|00001850| 74 2e 57 69 6e 57 69 64 | 74 68 3b 0d 0a 09 52 6f |t.WinWid|th;...Ro|
|00001860| 6f 74 2e 43 6c 69 70 70 | 69 6e 67 52 65 67 69 6f |ot.Clipp|ingRegio|
|00001870| 6e 2e 48 20 3d 20 52 6f | 6f 74 2e 57 69 6e 48 65 |n.H = Ro|ot.WinHe|
|00001880| 69 67 68 74 3b 0d 0a 0d | 0a 09 52 6f 6f 74 2e 43 |ight;...|..Root.C|
|00001890| 6f 6e 73 6f 6c 65 20 3d | 20 53 65 6c 66 3b 0d 0a |onsole =| Self;..|
|000018a0| 0d 0a 09 52 6f 6f 74 2e | 62 55 57 69 6e 64 6f 77 |...Root.|bUWindow|
|000018b0| 41 63 74 69 76 65 20 3d | 20 62 55 57 69 6e 64 6f |Active =| bUWindo|
|000018c0| 77 41 63 74 69 76 65 3b | 0d 0a 0d 0a 09 52 6f 6f |wActive;|.....Roo|
|000018d0| 74 2e 43 72 65 61 74 65 | 64 28 29 3b 0d 0a 09 62 |t.Create|d();...b|
|000018e0| 43 72 65 61 74 65 64 52 | 6f 6f 74 20 3d 20 54 72 |CreatedR|oot = Tr|
|000018f0| 75 65 3b 0d 0a 0d 0a 09 | 2f 2f 20 43 72 65 61 74 |ue;.....|// Creat|
|00001900| 65 20 74 68 65 20 63 6f | 6e 73 6f 6c 65 20 77 69 |e the co|nsole wi|
|00001910| 6e 64 6f 77 2e 0d 0a 09 | 43 6f 6e 73 6f 6c 65 57 |ndow....|ConsoleW|
|00001920| 69 6e 64 6f 77 20 3d 20 | 55 57 69 6e 64 6f 77 43 |indow = |UWindowC|
|00001930| 6f 6e 73 6f 6c 65 57 69 | 6e 64 6f 77 28 52 6f 6f |onsoleWi|ndow(Roo|
|00001940| 74 2e 43 72 65 61 74 65 | 57 69 6e 64 6f 77 28 43 |t.Create|Window(C|
|00001950| 6f 6e 73 6f 6c 65 43 6c | 61 73 73 2c 20 31 30 30 |onsoleCl|ass, 100|
|00001960| 2c 20 31 30 30 2c 20 32 | 30 30 2c 20 32 30 30 29 |, 100, 2|00, 200)|
|00001970| 29 3b 0d 0a 09 69 66 28 | 21 62 53 68 6f 77 43 6f |);...if(|!bShowCo|
|00001980| 6e 73 6f 6c 65 29 0d 0a | 09 09 48 69 64 65 43 6f |nsole)..|..HideCo|
|00001990| 6e 73 6f 6c 65 28 29 3b | 0d 0a 0d 0a 09 55 57 69 |nsole();|.....UWi|
|000019a0| 6e 64 6f 77 43 6f 6e 73 | 6f 6c 65 43 6c 69 65 6e |ndowCons|oleClien|
|000019b0| 74 57 69 6e 64 6f 77 28 | 43 6f 6e 73 6f 6c 65 57 |tWindow(|ConsoleW|
|000019c0| 69 6e 64 6f 77 2e 43 6c | 69 65 6e 74 41 72 65 61 |indow.Cl|ientArea|
|000019d0| 29 2e 54 65 78 74 41 72 | 65 61 2e 41 64 64 54 65 |).TextAr|ea.AddTe|
|000019e0| 78 74 28 22 20 22 29 3b | 0d 0a 09 66 6f 72 20 28 |xt(" ");|...for (|
|000019f0| 49 3d 30 3b 20 49 3c 34 | 3b 20 49 2b 2b 29 0d 0a |I=0; I<4|; I++)..|
|00001a00| 09 09 55 57 69 6e 64 6f | 77 43 6f 6e 73 6f 6c 65 |..UWindo|wConsole|
|00001a10| 43 6c 69 65 6e 74 57 69 | 6e 64 6f 77 28 43 6f 6e |ClientWi|ndow(Con|
|00001a20| 73 6f 6c 65 57 69 6e 64 | 6f 77 2e 43 6c 69 65 6e |soleWind|ow.Clien|
|00001a30| 74 41 72 65 61 29 2e 54 | 65 78 74 41 72 65 61 2e |tArea).T|extArea.|
|00001a40| 41 64 64 54 65 78 74 28 | 4d 73 67 54 65 78 74 5b |AddText(|MsgText[|
|00001a50| 49 5d 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |I]);..}.|...funct|
|00001a60| 69 6f 6e 20 52 65 6e 64 | 65 72 55 57 69 6e 64 6f |ion Rend|erUWindo|
|00001a70| 77 28 20 63 61 6e 76 61 | 73 20 43 61 6e 76 61 73 |w( canva|s Canvas|
|00001a80| 20 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 55 57 | )..{...|local UW|
|00001a90| 69 6e 64 6f 77 57 69 6e | 64 6f 77 20 4e 65 77 46 |indowWin|dow NewF|
|00001aa0| 6f 63 75 73 57 69 6e 64 | 6f 77 3b 0d 0a 0d 0a 09 |ocusWind|ow;.....|
|00001ab0| 43 61 6e 76 61 73 2e 62 | 4e 6f 53 6d 6f 6f 74 68 |Canvas.b|NoSmooth|
|00001ac0| 20 3d 20 54 72 75 65 3b | 0d 0a 09 43 61 6e 76 61 | = True;|...Canva|
|00001ad0| 73 2e 5a 20 3d 20 31 3b | 0d 0a 09 43 61 6e 76 61 |s.Z = 1;|...Canva|
|00001ae0| 73 2e 53 74 79 6c 65 20 | 3d 20 31 3b 0d 0a 09 43 |s.Style |= 1;...C|
|00001af0| 61 6e 76 61 73 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |anvas.Dr|awColor.|
|00001b00| 72 20 3d 20 32 35 35 3b | 0d 0a 09 43 61 6e 76 61 |r = 255;|...Canva|
|00001b10| 73 2e 44 72 61 77 43 6f | 6c 6f 72 2e 67 20 3d 20 |s.DrawCo|lor.g = |
|00001b20| 32 35 35 3b 0d 0a 09 43 | 61 6e 76 61 73 2e 44 72 |255;...C|anvas.Dr|
|00001b30| 61 77 43 6f 6c 6f 72 2e | 62 20 3d 20 32 35 35 3b |awColor.|b = 255;|
|00001b40| 0d 0a 0d 0a 09 69 66 28 | 56 69 65 77 70 6f 72 74 |.....if(|Viewport|
|00001b50| 2e 62 57 69 6e 64 6f 77 | 73 4d 6f 75 73 65 41 76 |.bWindow|sMouseAv|
|00001b60| 61 69 6c 61 62 6c 65 20 | 26 26 20 52 6f 6f 74 20 |ailable |&& Root |
|00001b70| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 7b 0d 0a 09 09 |!= None)|...{....|
|00001b80| 4d 6f 75 73 65 58 20 3d | 20 56 69 65 77 70 6f 72 |MouseX =| Viewpor|
|00001b90| 74 2e 57 69 6e 64 6f 77 | 73 4d 6f 75 73 65 58 2f |t.Window|sMouseX/|
|00001ba0| 52 6f 6f 74 2e 47 55 49 | 53 63 61 6c 65 3b 0d 0a |Root.GUI|Scale;..|
|00001bb0| 09 09 4d 6f 75 73 65 59 | 20 3d 20 56 69 65 77 70 |..MouseY| = Viewp|
|00001bc0| 6f 72 74 2e 57 69 6e 64 | 6f 77 73 4d 6f 75 73 65 |ort.Wind|owsMouse|
|00001bd0| 59 2f 52 6f 6f 74 2e 47 | 55 49 53 63 61 6c 65 3b |Y/Root.G|UIScale;|
|00001be0| 0d 0a 09 7d 0d 0a 0d 0a | 09 69 66 28 21 62 43 72 |...}....|.if(!bCr|
|00001bf0| 65 61 74 65 64 52 6f 6f | 74 29 20 0d 0a 09 09 43 |eatedRoo|t) ....C|
|00001c00| 72 65 61 74 65 52 6f 6f | 74 57 69 6e 64 6f 77 28 |reateRoo|tWindow(|
|00001c10| 43 61 6e 76 61 73 29 3b | 0d 0a 0d 0a 09 52 6f 6f |Canvas);|.....Roo|
|00001c20| 74 2e 62 57 69 6e 64 6f | 77 56 69 73 69 62 6c 65 |t.bWindo|wVisible|
|00001c30| 20 3d 20 54 72 75 65 3b | 0d 0a 09 52 6f 6f 74 2e | = True;|...Root.|
|00001c40| 62 55 57 69 6e 64 6f 77 | 41 63 74 69 76 65 20 3d |bUWindow|Active =|
|00001c50| 20 62 55 57 69 6e 64 6f | 77 41 63 74 69 76 65 3b | bUWindo|wActive;|
|00001c60| 0d 0a 09 52 6f 6f 74 2e | 62 51 75 69 63 6b 4b 65 |...Root.|bQuickKe|
|00001c70| 79 45 6e 61 62 6c 65 20 | 3d 20 62 51 75 69 63 6b |yEnable |= bQuick|
|00001c80| 4b 65 79 45 6e 61 62 6c | 65 3b 0d 0a 0d 0a 09 69 |KeyEnabl|e;.....i|
|00001c90| 66 28 43 61 6e 76 61 73 | 2e 43 6c 69 70 58 20 21 |f(Canvas|.ClipX !|
|00001ca0| 3d 20 4f 6c 64 43 6c 69 | 70 58 20 7c 7c 20 43 61 |= OldCli|pX || Ca|
|00001cb0| 6e 76 61 73 2e 43 6c 69 | 70 59 20 21 3d 20 4f 6c |nvas.Cli|pY != Ol|
|00001cc0| 64 43 6c 69 70 59 29 0d | 0a 09 7b 0d 0a 09 09 4f |dClipY).|..{....O|
|00001cd0| 6c 64 43 6c 69 70 58 20 | 3d 20 43 61 6e 76 61 73 |ldClipX |= Canvas|
|00001ce0| 2e 43 6c 69 70 58 3b 0d | 0a 09 09 4f 6c 64 43 6c |.ClipX;.|...OldCl|
|00001cf0| 69 70 59 20 3d 20 43 61 | 6e 76 61 73 2e 43 6c 69 |ipY = Ca|nvas.Cli|
|00001d00| 70 59 3b 0d 0a 09 09 0d | 0a 09 09 52 6f 6f 74 2e |pY;.....|...Root.|
|00001d10| 57 69 6e 54 6f 70 20 3d | 20 30 3b 0d 0a 09 09 52 |WinTop =| 0;....R|
|00001d20| 6f 6f 74 2e 57 69 6e 4c | 65 66 74 20 3d 20 30 3b |oot.WinL|eft = 0;|
|00001d30| 0d 0a 09 09 52 6f 6f 74 | 2e 57 69 6e 57 69 64 74 |....Root|.WinWidt|
|00001d40| 68 20 3d 20 43 61 6e 76 | 61 73 2e 43 6c 69 70 58 |h = Canv|as.ClipX|
|00001d50| 20 2f 20 52 6f 6f 74 2e | 47 55 49 53 63 61 6c 65 | / Root.|GUIScale|
|00001d60| 3b 0d 0a 09 09 52 6f 6f | 74 2e 57 69 6e 48 65 69 |;....Roo|t.WinHei|
|00001d70| 67 68 74 20 3d 20 43 61 | 6e 76 61 73 2e 43 6c 69 |ght = Ca|nvas.Cli|
|00001d80| 70 59 20 2f 20 52 6f 6f | 74 2e 47 55 49 53 63 61 |pY / Roo|t.GUISca|
|00001d90| 6c 65 3b 0d 0a 0d 0a 09 | 09 52 6f 6f 74 2e 52 65 |le;.....|.Root.Re|
|00001da0| 61 6c 57 69 64 74 68 20 | 3d 20 43 61 6e 76 61 73 |alWidth |= Canvas|
|00001db0| 2e 43 6c 69 70 58 3b 0d | 0a 09 09 52 6f 6f 74 2e |.ClipX;.|...Root.|
|00001dc0| 52 65 61 6c 48 65 69 67 | 68 74 20 3d 20 43 61 6e |RealHeig|ht = Can|
|00001dd0| 76 61 73 2e 43 6c 69 70 | 59 3b 0d 0a 0d 0a 09 09 |vas.Clip|Y;......|
|00001de0| 52 6f 6f 74 2e 43 6c 69 | 70 70 69 6e 67 52 65 67 |Root.Cli|ppingReg|
|00001df0| 69 6f 6e 2e 58 20 3d 20 | 30 3b 0d 0a 09 09 52 6f |ion.X = |0;....Ro|
|00001e00| 6f 74 2e 43 6c 69 70 70 | 69 6e 67 52 65 67 69 6f |ot.Clipp|ingRegio|
|00001e10| 6e 2e 59 20 3d 20 30 3b | 0d 0a 09 09 52 6f 6f 74 |n.Y = 0;|....Root|
|00001e20| 2e 43 6c 69 70 70 69 6e | 67 52 65 67 69 6f 6e 2e |.Clippin|gRegion.|
|00001e30| 57 20 3d 20 52 6f 6f 74 | 2e 57 69 6e 57 69 64 74 |W = Root|.WinWidt|
|00001e40| 68 3b 0d 0a 09 09 52 6f | 6f 74 2e 43 6c 69 70 70 |h;....Ro|ot.Clipp|
|00001e50| 69 6e 67 52 65 67 69 6f | 6e 2e 48 20 3d 20 52 6f |ingRegio|n.H = Ro|
|00001e60| 6f 74 2e 57 69 6e 48 65 | 69 67 68 74 3b 0d 0a 0d |ot.WinHe|ight;...|
|00001e70| 0a 09 09 52 6f 6f 74 2e | 52 65 73 69 7a 65 64 28 |...Root.|Resized(|
|00001e80| 29 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 28 4d 6f |);...}..|...if(Mo|
|00001e90| 75 73 65 58 20 3e 20 52 | 6f 6f 74 2e 57 69 6e 57 |useX > R|oot.WinW|
|00001ea0| 69 64 74 68 29 20 4d 6f | 75 73 65 58 20 3d 20 52 |idth) Mo|useX = R|
|00001eb0| 6f 6f 74 2e 57 69 6e 57 | 69 64 74 68 3b 0d 0a 09 |oot.WinW|idth;...|
|00001ec0| 69 66 28 4d 6f 75 73 65 | 59 20 3e 20 52 6f 6f 74 |if(Mouse|Y > Root|
|00001ed0| 2e 57 69 6e 48 65 69 67 | 68 74 29 20 4d 6f 75 73 |.WinHeig|ht) Mous|
|00001ee0| 65 59 20 3d 20 52 6f 6f | 74 2e 57 69 6e 48 65 69 |eY = Roo|t.WinHei|
|00001ef0| 67 68 74 3b 0d 0a 09 69 | 66 28 4d 6f 75 73 65 58 |ght;...i|f(MouseX|
|00001f00| 20 3c 20 30 29 20 4d 6f | 75 73 65 58 20 3d 20 30 | < 0) Mo|useX = 0|
|00001f10| 3b 0d 0a 09 69 66 28 4d | 6f 75 73 65 59 20 3c 20 |;...if(M|ouseY < |
|00001f20| 30 29 20 4d 6f 75 73 65 | 59 20 3d 20 30 3b 0d 0a |0) Mouse|Y = 0;..|
|00001f30| 0d 0a 0d 0a 09 2f 2f 20 | 43 68 65 63 6b 20 66 6f |.....// |Check fo|
|00001f40| 72 20 6b 65 79 62 6f 61 | 72 64 20 66 6f 63 75 73 |r keyboa|rd focus|
|00001f50| 0d 0a 09 4e 65 77 46 6f | 63 75 73 57 69 6e 64 6f |...NewFo|cusWindo|
|00001f60| 77 20 3d 20 52 6f 6f 74 | 2e 43 68 65 63 6b 4b 65 |w = Root|.CheckKe|
|00001f70| 79 46 6f 63 75 73 57 69 | 6e 64 6f 77 28 29 3b 0d |yFocusWi|ndow();.|
|00001f80| 0a 0d 0a 09 69 66 28 4e | 65 77 46 6f 63 75 73 57 |....if(N|ewFocusW|
|00001f90| 69 6e 64 6f 77 20 21 3d | 20 52 6f 6f 74 2e 4b 65 |indow !=| Root.Ke|
|00001fa0| 79 46 6f 63 75 73 57 69 | 6e 64 6f 77 29 0d 0a 09 |yFocusWi|ndow)...|
|00001fb0| 7b 0d 0a 09 09 52 6f 6f | 74 2e 4b 65 79 46 6f 63 |{....Roo|t.KeyFoc|
|00001fc0| 75 73 57 69 6e 64 6f 77 | 2e 4b 65 79 46 6f 63 75 |usWindow|.KeyFocu|
|00001fd0| 73 45 78 69 74 28 29 3b | 09 09 0d 0a 09 09 52 6f |sExit();|......Ro|
|00001fe0| 6f 74 2e 4b 65 79 46 6f | 63 75 73 57 69 6e 64 6f |ot.KeyFo|cusWindo|
|00001ff0| 77 20 3d 20 4e 65 77 46 | 6f 63 75 73 57 69 6e 64 |w = NewF|ocusWind|
|00002000| 6f 77 3b 0d 0a 09 09 52 | 6f 6f 74 2e 4b 65 79 46 |ow;....R|oot.KeyF|
|00002010| 6f 63 75 73 57 69 6e 64 | 6f 77 2e 4b 65 79 46 6f |ocusWind|ow.KeyFo|
|00002020| 63 75 73 45 6e 74 65 72 | 28 29 3b 0d 0a 09 7d 0d |cusEnter|();...}.|
|00002030| 0a 0d 0a 0d 0a 09 52 6f | 6f 74 2e 4d 6f 76 65 4d |......Ro|ot.MoveM|
|00002040| 6f 75 73 65 28 4d 6f 75 | 73 65 58 2c 20 4d 6f 75 |ouse(Mou|seX, Mou|
|00002050| 73 65 59 29 3b 0d 0a 09 | 52 6f 6f 74 2e 57 69 6e |seY);...|Root.Win|
|00002060| 64 6f 77 45 76 65 6e 74 | 28 57 4d 5f 50 61 69 6e |dowEvent|(WM_Pain|
|00002070| 74 2c 20 43 61 6e 76 61 | 73 2c 20 4d 6f 75 73 65 |t, Canva|s, Mouse|
|00002080| 58 2c 20 4d 6f 75 73 65 | 59 2c 20 30 29 3b 0d 0a |X, Mouse|Y, 0);..|
|00002090| 09 69 66 28 62 55 57 69 | 6e 64 6f 77 41 63 74 69 |.if(bUWi|ndowActi|
|000020a0| 76 65 20 7c 7c 20 62 51 | 75 69 63 6b 4b 65 79 45 |ve || bQ|uickKeyE|
|000020b0| 6e 61 62 6c 65 29 20 0d | 0a 09 09 52 6f 6f 74 2e |nable) .|...Root.|
|000020c0| 44 72 61 77 4d 6f 75 73 | 65 28 43 61 6e 76 61 73 |DrawMous|e(Canvas|
|000020d0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 65 76 65 6e 74 20 4d |);..}...|.event M|
|000020e0| 65 73 73 61 67 65 28 20 | 50 6c 61 79 65 72 52 65 |essage( |PlayerRe|
|000020f0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 20 50 52 |plicatio|nInfo PR|
|00002100| 49 2c 20 63 6f 65 72 63 | 65 20 73 74 72 69 6e 67 |I, coerc|e string|
|00002110| 20 4d 73 67 2c 20 6e 61 | 6d 65 20 4e 20 29 0d 0a | Msg, na|me N )..|
|00002120| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |{...loca|l string|
|00002130| 20 4f 75 74 54 65 78 74 | 3b 0d 0a 0d 0a 09 53 75 | OutText|;.....Su|
|00002140| 70 65 72 2e 4d 65 73 73 | 61 67 65 28 20 50 52 49 |per.Mess|age( PRI|
|00002150| 2c 20 4d 73 67 2c 20 4e | 20 29 3b 0d 0a 0d 0a 09 |, Msg, N| );.....|
|00002160| 69 66 20 28 20 56 69 65 | 77 70 6f 72 74 2e 41 63 |if ( Vie|wport.Ac|
|00002170| 74 6f 72 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |tor == N|one )...|
|00002180| 09 72 65 74 75 72 6e 3b | 0d 0a 0d 0a 09 69 66 28 |.return;|.....if(|
|00002190| 20 4d 73 67 21 3d 22 22 | 20 29 0d 0a 09 7b 0d 0a | Msg!=""| )...{..|
|000021a0| 09 09 69 66 20 28 28 20 | 4d 73 67 54 79 70 65 5b |..if (( |MsgType[|
|000021b0| 54 6f 70 4c 69 6e 65 5d | 20 3d 3d 20 27 53 61 79 |TopLine]| == 'Say|
|000021c0| 27 20 29 20 7c 7c 20 28 | 20 4d 73 67 54 79 70 65 |' ) || (| MsgType|
|000021d0| 5b 54 6f 70 4c 69 6e 65 | 5d 20 3d 3d 20 27 54 65 |[TopLine|] == 'Te|
|000021e0| 61 6d 53 61 79 27 20 29 | 29 0d 0a 09 09 09 4f 75 |amSay' )|).....Ou|
|000021f0| 74 54 65 78 74 20 3d 20 | 4d 73 67 50 6c 61 79 65 |tText = |MsgPlaye|
|00002200| 72 5b 54 6f 70 4c 69 6e | 65 5d 2e 50 6c 61 79 65 |r[TopLin|e].Playe|
|00002210| 72 4e 61 6d 65 24 22 3a | 20 22 24 4d 73 67 54 65 |rName$":| "$MsgTe|
|00002220| 78 74 5b 54 6f 70 4c 69 | 6e 65 5d 3b 0d 0a 09 09 |xt[TopLi|ne];....|
|00002230| 65 6c 73 65 0d 0a 09 09 | 09 4f 75 74 54 65 78 74 |else....|.OutText|
|00002240| 20 3d 20 4d 73 67 54 65 | 78 74 5b 54 6f 70 4c 69 | = MsgTe|xt[TopLi|
|00002250| 6e 65 5d 3b 0d 0a 09 09 | 69 66 20 28 43 6f 6e 73 |ne];....|if (Cons|
|00002260| 6f 6c 65 57 69 6e 64 6f | 77 20 21 3d 20 4e 6f 6e |oleWindo|w != Non|
|00002270| 65 29 0d 0a 09 09 09 55 | 57 69 6e 64 6f 77 43 6f |e).....U|WindowCo|
|00002280| 6e 73 6f 6c 65 43 6c 69 | 65 6e 74 57 69 6e 64 6f |nsoleCli|entWindo|
|00002290| 77 28 43 6f 6e 73 6f 6c | 65 57 69 6e 64 6f 77 2e |w(Consol|eWindow.|
|000022a0| 43 6c 69 65 6e 74 41 72 | 65 61 29 2e 54 65 78 74 |ClientAr|ea).Text|
|000022b0| 41 72 65 61 2e 41 64 64 | 54 65 78 74 28 4f 75 74 |Area.Add|Text(Out|
|000022c0| 54 65 78 74 29 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |Text);..|.}..}...|
|000022d0| 0a 65 76 65 6e 74 20 41 | 64 64 53 74 72 69 6e 67 |.event A|ddString|
|000022e0| 28 20 63 6f 65 72 63 65 | 20 73 74 72 69 6e 67 20 |( coerce| string |
|000022f0| 4d 73 67 20 29 0d 0a 7b | 0d 0a 09 53 75 70 65 72 |Msg )..{|...Super|
|00002300| 2e 41 64 64 53 74 72 69 | 6e 67 28 20 4d 73 67 20 |.AddStri|ng( Msg |
|00002310| 29 3b 0d 0a 0d 0a 09 69 | 66 28 20 4d 73 67 21 3d |);.....i|f( Msg!=|
|00002320| 22 22 20 29 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |"" )...{|....if (|
|00002330| 43 6f 6e 73 6f 6c 65 57 | 69 6e 64 6f 77 20 21 3d |ConsoleW|indow !=|
|00002340| 20 4e 6f 6e 65 29 0d 0a | 09 09 09 55 57 69 6e 64 | None)..|...UWind|
|00002350| 6f 77 43 6f 6e 73 6f 6c | 65 43 6c 69 65 6e 74 57 |owConsol|eClientW|
|00002360| 69 6e 64 6f 77 28 43 6f | 6e 73 6f 6c 65 57 69 6e |indow(Co|nsoleWin|
|00002370| 64 6f 77 2e 43 6c 69 65 | 6e 74 41 72 65 61 29 2e |dow.Clie|ntArea).|
|00002380| 54 65 78 74 41 72 65 61 | 2e 41 64 64 54 65 78 74 |TextArea|.AddText|
|00002390| 28 4d 73 67 29 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |(Msg);..|.}..}...|
|000023a0| 0a 66 75 6e 63 74 69 6f | 6e 20 55 70 64 61 74 65 |.functio|n Update|
|000023b0| 48 69 73 74 6f 72 79 28 | 29 0d 0a 7b 0d 0a 09 2f |History(|)..{.../|
|000023c0| 2f 20 55 70 64 61 74 65 | 20 68 69 73 74 6f 72 79 |/ Update| history|
|000023d0| 20 62 75 66 66 65 72 2e | 0d 0a 09 48 69 73 74 6f | buffer.|...Histo|
|000023e0| 72 79 5b 48 69 73 74 6f | 72 79 43 75 72 2b 2b 20 |ry[Histo|ryCur++ |
|000023f0| 25 20 4d 61 78 48 69 73 | 74 6f 72 79 5d 20 3d 20 |% MaxHis|tory] = |
|00002400| 54 79 70 65 64 53 74 72 | 3b 0d 0a 09 69 66 28 20 |TypedStr|;...if( |
|00002410| 48 69 73 74 6f 72 79 43 | 75 72 20 3e 20 48 69 73 |HistoryC|ur > His|
|00002420| 74 6f 72 79 42 6f 74 20 | 29 0d 0a 09 09 48 69 73 |toryBot |)....His|
|00002430| 74 6f 72 79 42 6f 74 2b | 2b 3b 0d 0a 09 69 66 28 |toryBot+|+;...if(|
|00002440| 20 48 69 73 74 6f 72 79 | 43 75 72 20 2d 20 48 69 | History|Cur - Hi|
|00002450| 73 74 6f 72 79 54 6f 70 | 20 3e 3d 20 4d 61 78 48 |storyTop| >= MaxH|
|00002460| 69 73 74 6f 72 79 20 29 | 0d 0a 09 09 48 69 73 74 |istory )|....Hist|
|00002470| 6f 72 79 54 6f 70 20 3d | 20 48 69 73 74 6f 72 79 |oryTop =| History|
|00002480| 43 75 72 20 2d 20 4d 61 | 78 48 69 73 74 6f 72 79 |Cur - Ma|xHistory|
|00002490| 20 2b 20 31 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 | + 1;..}|....func|
|000024a0| 74 69 6f 6e 20 48 69 73 | 74 6f 72 79 55 70 28 29 |tion His|toryUp()|
|000024b0| 0d 0a 7b 0d 0a 09 69 66 | 28 20 48 69 73 74 6f 72 |..{...if|( Histor|
|000024c0| 79 43 75 72 20 3e 20 48 | 69 73 74 6f 72 79 54 6f |yCur > H|istoryTo|
|000024d0| 70 20 29 0d 0a 09 7b 0d | 0a 09 09 48 69 73 74 6f |p )...{.|...Histo|
|000024e0| 72 79 5b 48 69 73 74 6f | 72 79 43 75 72 20 25 20 |ry[Histo|ryCur % |
|000024f0| 4d 61 78 48 69 73 74 6f | 72 79 5d 20 3d 20 54 79 |MaxHisto|ry] = Ty|
|00002500| 70 65 64 53 74 72 3b 0d | 0a 09 09 54 79 70 65 64 |pedStr;.|...Typed|
|00002510| 53 74 72 20 3d 20 48 69 | 73 74 6f 72 79 5b 2d 2d |Str = Hi|story[--|
|00002520| 48 69 73 74 6f 72 79 43 | 75 72 20 25 20 4d 61 78 |HistoryC|ur % Max|
|00002530| 48 69 73 74 6f 72 79 5d | 3b 0d 0a 09 7d 0d 0a 7d |History]|;...}..}|
|00002540| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 48 69 73 |....func|tion His|
|00002550| 74 6f 72 79 44 6f 77 6e | 28 29 0d 0a 7b 0d 0a 09 |toryDown|()..{...|
|00002560| 48 69 73 74 6f 72 79 5b | 48 69 73 74 6f 72 79 43 |History[|HistoryC|
|00002570| 75 72 20 25 20 4d 61 78 | 48 69 73 74 6f 72 79 5d |ur % Max|History]|
|00002580| 20 3d 20 54 79 70 65 64 | 53 74 72 3b 0d 0a 09 69 | = Typed|Str;...i|
|00002590| 66 28 20 48 69 73 74 6f | 72 79 43 75 72 20 3c 20 |f( Histo|ryCur < |
|000025a0| 48 69 73 74 6f 72 79 42 | 6f 74 20 29 0d 0a 09 09 |HistoryB|ot )....|
|000025b0| 54 79 70 65 64 53 74 72 | 20 3d 20 48 69 73 74 6f |TypedStr| = Histo|
|000025c0| 72 79 5b 2b 2b 48 69 73 | 74 6f 72 79 43 75 72 20 |ry[++His|toryCur |
|000025d0| 25 20 4d 61 78 48 69 73 | 74 6f 72 79 5d 3b 0d 0a |% MaxHis|tory];..|
|000025e0| 09 65 6c 73 65 0d 0a 09 | 09 54 79 70 65 64 53 74 |.else...|.TypedSt|
|000025f0| 72 3d 22 22 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |r="";..}|....func|
|00002600| 74 69 6f 6e 20 4e 6f 74 | 69 66 79 4c 65 76 65 6c |tion Not|ifyLevel|
|00002610| 43 68 61 6e 67 65 28 29 | 0d 0a 7b 0d 0a 09 53 75 |Change()|..{...Su|
|00002620| 70 65 72 2e 4e 6f 74 69 | 66 79 4c 65 76 65 6c 43 |per.Noti|fyLevelC|
|00002630| 68 61 6e 67 65 28 29 3b | 0d 0a 09 62 4c 65 76 65 |hange();|...bLeve|
|00002640| 6c 43 68 61 6e 67 65 20 | 3d 20 54 72 75 65 3b 0d |lChange |= True;.|
|00002650| 0a 09 69 66 28 52 6f 6f | 74 20 21 3d 20 4e 6f 6e |..if(Roo|t != Non|
|00002660| 65 29 0d 0a 09 09 52 6f | 6f 74 2e 4e 6f 74 69 66 |e)....Ro|ot.Notif|
|00002670| 79 42 65 66 6f 72 65 4c | 65 76 65 6c 43 68 61 6e |yBeforeL|evelChan|
|00002680| 67 65 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 00 |ge();..}|..... |
+--------+-------------------------+-------------------------+--------+--------+